From: Florian Müllner Date: Tue, 31 Mar 2026 19:39:05 +0000 (+0200) Subject: portalHelper: Set up accels from app X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~10^2^2~68 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=bb7dc58a3d03c28efd7cccaf272a22e688ea94c6;p=gnome-shell.git portalHelper: Set up accels from app Setting up accels is an app action, so doing it from the app is a more natural place than repeating it for each window (even if the common case is a single window for the entire process lifetime). Part-of: --- diff --git a/js/portalHelper/main.js b/js/portalHelper/main.js index 7004a3279..46bd074d4 100644 --- a/js/portalHelper/main.js +++ b/js/portalHelper/main.js @@ -157,8 +157,6 @@ class PortalWindow extends Gtk.ApplicationWindow { this.set_child(this._webView); this.maximize(); this.present_with_time(timestamp); - - this.application.set_accels_for_action('app.quit', ['q', 'w']); } _syncUri() { @@ -302,6 +300,8 @@ class WebPortalHelper extends Adw.Application { const action = new Gio.SimpleAction({name: 'quit'}); action.connect('activate', () => this.active_window.destroy()); this.add_action(action); + + this.set_accels_for_action('app.quit', ['q', 'w']); } vfunc_dbus_register(connection, path) {